//package cn.lhemi.iotweb.service;
//
//import org.springframework.boot.autoconfigure.security.SecurityProperties;
//import org.springframework.security.core.authority.SimpleGrantedAuthority;
//import org.springframework.security.core.userdetails.User;
//import org.springframework.security.core.userdetails.UserDetails;
//import org.springframework.security.core.userdetails.UserDetailsService;
//import org.springframework.security.core.userdetails.UsernameNotFoundException;
//import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
//import org.springframework.stereotype.Service;
//
//import java.util.Collections;
//
///**
// * @author tutu11
// * @description
// * @date 2020-03-13 09:37:34
// */
//@Service
//public class UserServiceImpl implements UserDetailsService {
//    @Override
//    public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException {
//        SimpleGrantedAuthority authority = new SimpleGrantedAuthority("client");
//        User user = new User("1","$2a$10$eGuli8Hn6x308Syo7upVAO.YJDaFFiZGcoNyqIoC0XHtBFtw6QRHe", Collections.singleton(authority));
//        return user;
//    }
//
//
//
//}
